import request from '@/utils/_request'

// 查询字典类型列表
export function listType(data) {
    return request({
        url: '/admin/system/dict/type/list',
        method: 'GET',
        params:data
    })
}
//新增字典类型
export function addType(data) {
    return request({
        url:'/admin/system/dict/type',
        method:'post',
        data: data
    })
}
//查询数据字典类型
export function getType(dictId){
    return request({
        url:'/admin/system/dict/type/'+dictId,
        method:'GET'
    })
}
//修改数据字典类型
export function updateType(data){
    return request({
        url: '/admin/system/dict/type',
        method:'put',
        data: data
    })
}
//删除数据字典类型
export function delType(dictIds){
    return request({
        url:'/admin/system/dict/type/'+dictIds,
        method:'DELETE'
    })
}
//获取字典选项框列表
export function optionselect(){
    return request({
        url:'/admin/system/dict/type/optionselect',
        method:'GET'
    })
}